#include<iostream>
using namespace std;
int main() {
	long long a;
	cin >> a;
	long long second;
	second = a % 60;
	long long sminute,minute;
	sminute = a / 60;
	minute = sminute % 60;
	int shour;
	shour = sminute / 60;


	cout << shour << ":" << minute << ":" << second;



	
	return 0;
}